package util;

import java.util.Comparator;

import simulation.Observation;



public class ObservationComparator implements Comparator<Observation> {

	@Override
	public int compare(Observation arg0, Observation arg1) {
		int res=0;
		
		if (arg0.getTime() < arg1.getTime()){
			res = -1;
		}
		if (arg0.getTime() > arg1.getTime()){
			res = 1;
		}
		return res;
	}

}
